Skip to main content link. Accesskey S
  • Help
  • HCL Logo
  • HCL Lotus Expeditor wiki
  • THIS WIKI IS READ-ONLY. Individual names altered for privacy purposes.
  • HCL forums and blogs
  • Home
  • Product Documentation
  • Community Articles
Search
Community Articles > Troubleshooting > An Overview of the OSGI Console
  • Share Show Menu▼
  • Subscribe Show Menu▼

Recent articles by this author

Troubleshooting the IEOOP Process

The IEOOP process provides native assistance to the Lotus Expeditor web browser component. Depending on the technical depth of the problem, support may require additional technical data not collected by default.

An Overview of the OSGI Console

The OSGI console can assist with development investigation as well as with troubleshooting runtime errors in the field. Since the support team regularly makes use of the OSGI console, it's worth becoming familiar with basic commands.

Sample: Creating a JAX-WS client for Lotus Expeditor

While Lotus Expeditor does not directly provide support for JAX-WS, the Java 1.6 runtime provides the necessary support to use JAX-WS clients on the Lotus Expeditor platform.

IBM Lotus Expeditor Support Collecting ISA Data

Before opening a PMR with IBM support, please do the following to ensure that IBM support has required information to begin troubleshooting your system.

IBM Lotus Expeditor Support plugin_cusomization.ini Reference

During the maintenance of Expeditor, some plugincustomization.ini parameters may be added between releases. This document serves as a reference and list of additional parameters and usage.
Community articleAn Overview of the OSGI Console
Added by ~Lily Minlusteretsi | Edited by IBM contributor~Lily Minlusteretsi on October 4, 2010 | Version 11
  • Actions Show Menu▼
expanded Abstract
collapsed Abstract
The OSGI console can assist with development investigation as well as with troubleshooting runtime errors in the field. Since the support team regularly makes use of the OSGI console, it's worth becoming familiar with basic commands.
Tags: support troubleshooting
ShowTable of Contents
HideTable of Contents
  • 1 Overview
  • 2 Starting the OSGI console with Lotus Expeditor
  • 3 Using the OSGI console
    • 3.1 Platform Crash or Hang
    • 3.2 Bundle Status
      • 3.2.1 Example
    • 3.3 Adusting Log Levels Dynamically
      • 3.3.1 Example

Overview


The OSGI console can assist with development investigation as well as with troubleshooting runtime errors in the field. Since the support team regularly makes use of the OSGI console, it's worth becoming familiar with basic commands.

Starting the OSGI console with Lotus Expeditor


When using the Lotus Expeditor Client, append -console to the Expeditor Client shortcut.  For example, C:\XPD621\rcp\rcplauncher.exe -console.

If using Lotus Notes 8, append -RPARAMS -console.  For example, C:\notes\notes.exe -RPARAMS -console.

When launching either, the OSGI console window will display in addition to the client.


 
Eclipse developers may already be familiar with the OSGI console.  It's often used in the IDE, but the same commands listed below can be used within the IDE as well.




Using the OSGI console


Commands can be input to the platform by typin the command next to the osgi> prompt.  If you do not see the prompt simply press enter.  For a complete list of commands available, type ? and then press enter.  The following sections describe helpful commands, but the list is by no means exhaustive.  The list is designed to get you acquinted with the OSGI console and describe some of the more frequent, helpful commands.

Platform Crash or Hang


Should a problem be encountered while running the Expeditor Client such as a platform hang or crash, the following commands provide useful data when conducting a postmortem investigation.

dump heap
dump threads
  • dump heap generates a JVM heap dump useful when analyzing heap memory usage or memory leaks
  • dump threads generates a javacore which can be used to analyze the stack trace of various threads; it's often useful to run dump threads several times and compare threads over time
See IBM Thread and Monitor Dump Analyzer for Javaexternal link for analyzing output from the above command. Additionally, the location of dump output may be redirected by editing the rcpinstall.properties file.

env.set.IBM_JAVACOREDIR=${rcp.data}/logs 
env.set.IBM_COREDIR=${rcp.data}/logs 
env.set.IBM_HEAPDUMPDIR=${rcp.data}/logs

 

Bundle Status


When trying to isolate why a particular feature may be failing, it's often necessary to understand the bundle's (plugin's) state: is it installed, is it started, or has it failed to start?  The OSGI console generally accepts either the bundle's symbolic name or the bundle ID.

ss
start
stop
diag
bundle
  • ss or short status list matching bundles and their state
  • start starts a bundle
  • stop stops the bundle
  • diag determines if the bundle has unresolved dependencies which could lead to runtime problems or an inability to use the bundle at runtime bundle displays a verbose set of information related to exported packages, dependencies, etc

Example


ss com.ibm.rcp.sync
ss sync
start com.ibm.rcp.syncui.schedule
start 606
diag com.ibm.rcp.syncui.schedule
bundle com.ibm.rcp.syncui.schedule


Adusting Log Levels Dynamically


To limit trace output or enable trace output on the fly, use the following command.

setlogrlev
  • setlogrlev dynamically adjusts log output provide the logger ID (bundle's symbolic name normally) and a level (FINEST, FINER, FINE)

Example


setlogrlev com.ibm.rcp.ui.launcher FINEST


You can adjust the trace level using FINEST, FINER, FINE, INFO, WARNING, CONFIG with lowering levels of detail respectively.  If using the above trace, click the Open button in the client to output trace.

  • Actions Show Menu▼


expanded Attachments (0)
collapsed Attachments (0)
Edit the article to add or modify attachments.
expanded Versions (11)
collapsed Versions (11)
Version Comparison     
VersionDateChanged by              Summary of changes
This version (11)Oct 4, 2010, 6:55:41 PM~Lily Minlusteretsi  IBM contributor
10Oct 4, 2010, 5:42:10 PM~Lily Minlusteretsi  IBM contributor
9Sep 15, 2010, 5:07:06 PM~Lily Minlusteretsi  IBM contributor
8Sep 15, 2010, 5:06:47 PM~Lily Minlusteretsi  IBM contributor
7Sep 3, 2010, 5:35:48 PM~Lily Minlusteretsi  IBM contributor
6Sep 3, 2010, 5:25:39 PM~Lily Minlusteretsi  IBM contributor
5Sep 3, 2010, 5:24:22 PM~Lily Minlusteretsi  IBM contributor
4Sep 3, 2010, 5:22:49 PM~Lily Minlusteretsi  IBM contributor
3Sep 3, 2010, 5:22:28 PM~Lily Minlusteretsi  IBM contributor
2Sep 3, 2010, 5:18:13 PM~Lily Minlusteretsi  IBM contributor
1Sep 3, 2010, 5:17:35 PM~Lily Minlusteretsi  IBM contributor
expanded Comments (0)
collapsed Comments (0)
Copy and paste this wiki markup to link to this article from another article in this wiki.
Go ElsewhereStay ConnectedAbout
  • HCL Software
  • HCL Digital Solutions community
  • HCL Software Support
  • BlogsDigital Solutions blog
  • Community LinkHCL Software forums and blogs
  • About HCL Software
  • Privacy
  • Accessibility